/** @type {import('next').NextConfig} */
import dotenv from 'dotenv';

// Load the correct environment file
const envFile = process.env.ENV_FILE || '.env.prod';
dotenv.config({ path: envFile });
const nextConfig = {
    webpack(config) {
        config.module.rules.push({
            test: /\.svg$/,
            use: ["@svgr/webpack"],
        });

        return config;
    },
    env: {
        NEXT_PUBLIC_API_HOST_URL: process.env.NEXT_PUBLIC_API_HOST_URL,
    },
};


export default nextConfig;
